package com.cn.wanxi.dao;

import com.cn.wanxi.model.FacebookModel;

import java.util.List;
import java.util.Map;

public interface IFacebookDao {

    int addFacebook(FacebookModel facebookModel);

    int deleteFacebook(int id);

    List<FacebookModel> getFacebookList();

    FacebookModel getFacebook(int id);

    List<FacebookModel> getFacebooks(Map<String, Object> map);

    long getFacebookCount(Map<String, Object> map);

    List<FacebookModel> getFacebookListByRedis();

    void setFacebookInRedis(List<FacebookModel> facebookList);
}
